﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/default.Master" AutoEventWireup="true"
    CodeBehind="District-List.aspx.cs" Inherits="NRCP.MetaData.District_List" %>

<%@ Import Namespace="NRCP.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="grid_24">
        <asp:GridView ID="grvList" runat="server" SkinID="GridView">
            <Columns>
                <asp:BoundField DataField="Name" HeaderText="District Name" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <a href="<%= SiteSettings.BaseUrl %>MetaData/District-Edit.aspx?id=<%# Eval("Id")%>">
                            Details</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <br class="clear" />
    <div class="grid_24 mGrid">
        <div class="grid_19 alpha pgr">
            <table>
                <tr>
                    <asp:Repeater ID="repPager" runat="server" OnItemCommand="repPager_ItemCommand">
                        <ItemTemplate>
                            <td>
                                <asp:LinkButton ID="lnbPageIndex" runat="server" CssClass="pgr" CommandArgument='<%# Container.DataItem.ToString() %>'><%# Container.DataItem.ToString() %></asp:LinkButton>
                            </td>
                        </ItemTemplate>
                    </asp:Repeater>
                </tr>
            </table>
        </div>
        <div class="grid_5 omega pgr-count">
            Total
            <asp:Literal ID="litTotalRecordCount" runat="server"></asp:Literal>
            Records Found
        </div>
    </div>
</asp:Content>
